package com.cloud.dong.controller;

import com.cloud.dong.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author DJ
 * @description
 * @date 2022/2/13 4:03 下午
 **/
@RestController
public class SendMessageController {

    @Resource
    IMessageProvider iMessageProvider;

    /**
     * 发送消息
     *
     * @param
     * @return java.lang.String
     * @author DJ
     * @date 4:05 下午 2022/2/13
     **/
    @GetMapping("/sendMessage")
    public String sendMessage() {
        return iMessageProvider.send();
    }
}
